import request from '@/utils/request'

export function getPage(params) {
  return request({
    url: '/bouquet/page',
    method: 'get',
    params
  })
}

export function savebouquet(data) {
  return request({
    url: '/bouquet',
    method: 'post',
    data
  })
}

export function editbouquet(data) {
  return request({
    url: '/bouquet',
    method: 'put',
    data
  })
}

export function getById(bouquetId) {
  return request({
    url: '/bouquet/getById',
    method: 'get',
    params: {
      bouquetId
    }
  })
}

export function removebouquet(bouquetId) {
  console.log(bouquetId);
  return request({
    url: '/bouquet',
    method: 'delete',
    params: {
      bouquetId
    }
  })
}

export function batchDeletebouquet(ids) {
  console.log("api");
  console.log(ids);

  return request({
    url: '/bouquet/batchDelete/' + ids,
    method: 'delete',

  })
}




